import request from '@/utils/request'

// 查询成长值变化历史记录列表
export function listGchistory(query) {
  return request({
    url: '/member/gchistory/list',
    method: 'get',
    params: query
  })
}

// 查询成长值变化历史记录详细
export function getGchistory(id) {
  return request({
    url: '/member/gchistory/' + id,
    method: 'get'
  })
}

// 新增成长值变化历史记录
export function addGchistory(data) {
  return request({
    url: '/member/gchistory',
    method: 'post',
    data: data
  })
}

// 修改成长值变化历史记录
export function updateGchistory(data) {
  return request({
    url: '/member/gchistory',
    method: 'put',
    data: data
  })
}

// 删除成长值变化历史记录
export function delGchistory(id) {
  return request({
    url: '/member/gchistory/' + id,
    method: 'delete'
  })
}
